package com.beibojd.service;

import com.beibojd.pojo.Goods;
import com.beibojd.pojo.Result;

import java.util.List;

/**
 * @Author: 洪耀荣
 * @Date: 2021-06-24 09:24:41
 */
public interface GoodsService {
    //查询全部
    public List<Goods> selectAllGoods();
    //更新数据
    public void update(Goods goods);
    //根据id查询
    public Goods selectById(Integer id);
    //进货时添加商品
    public Result addGoods(Goods goods);
    //卖出时，减库存
    public Result sellGoods(Goods goods);

    public Result delgood(Integer customerId);
}
